.store-comparison {
    padding: 24px;
}

.comparison-header {
    margin-bottom: 24px;
}

.comparison-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comparison-filters {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group > label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* 自定义复选框样式 */
.store-selector,
.dimension-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-checkbox,
.dimension-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
}

.store-checkbox:hover,
.dimension-checkbox:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.store-checkbox input,
.dimension-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.store-checkbox input:checked + span,
.dimension-checkbox input:checked + span {
    color: var(--primary-color);
}

.store-checkbox .checkmark,
.dimension-checkbox .checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #d9d9d9;
    border-radius: 2px;
    transition: all 0.3s;
}

.store-checkbox input:checked ~ .checkmark,
.dimension-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.store-checkbox .checkmark:after,
.dimension-checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.store-checkbox input:checked ~ .checkmark:after,
.dimension-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* 日期选择器样式 */
.date-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.date-input:hover,
.date-input:focus {
    border-color: var(--primary-color);
}

/* 图表容器样式 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    height: 300px;
}

/* 数据分析样式 */
.analysis-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.analysis-container h3 {
    margin: 0 0 16px;
    color: var(--text-primary);
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 4px;
    background: #f5f5f5;
}

.analysis-item.high {
    background: #f6ffed;
}

.analysis-item.low {
    background: #fff2f0;
}

.store-name {
    font-weight: 500;
    color: var(--text-primary);
}

.dimension-name {
    color: var(--text-secondary);
}

.difference {
    margin-left: auto;
    font-weight: 500;
}

.difference.positive {
    color: var(--success-color);
}

.difference.negative {
    color: var(--error-color);
}

.no-analysis {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
}